<?php

include "../../db_const.php";
include "../../connect.php";
include "../../connect_ado.php";
//include "../../onegate_function.php";
include "../../isa-lib/isa-function/isa_public_function.php";

//*****************************************************************************************************************
//	V1.0	ChungNT	Kiem tra so ten cua hang da ton tai chua
//*****************************************************************************************************************
	$ten_ho_kinh_doanh = urldecode($_REQUEST['id']);
//	$ten_ho_kinh_doanh = createStringToCheckValueOfSearch($ten_ho_kinh_doanh);
//	$array_thkd = split(',',$ten_ho_kinh_doanh);

	$type   = $_REQUEST['type'];
	$sql = "exec KiemTraTenCuaHieu '".$ten_ho_kinh_doanh."','".$type."'";
	///echo $sql;
	//_write_log_file('tuyenntt.txt',$sql);
	$v_result = $ado_conn->GetAll($sql);	
	echo ($v_result[0][0]);	
?>